.dag-layout {
	height: 100%;
	display: flex;
	background: #000;
	width: 100%;
	overflow: hidden;

	#stencil {
		width: 60px;
		height: calc(100% - 42px);
		position: absolute;
		left: 0px;
		top: 42px;
		background: #333333;
		z-index: 2;

		// border-right: 1px solid #dfe3e8;
		foreignObject {
			width: 32px;
			height: 32px;
			cursor: move;

			.self-defined {
				width: 32px;
				height: 32px;
				background: none;

				.self-defined-icon {
					margin-top: 0;
				}
			}

			.self-defined-word {
				display: none;
			}
		}

		rect {
			display: none;
		}

		.x6-cell.x6-node.x6-node-immovable {
			// display: none;
			width: 60px;
			height: 32px;
			display: block;
			float: left;
		}
	}

	.graph-container-box {
		width: calc(100% - 180px);
		height: 100%;
		flex: 1;
		margin-right: 1px;
		position: relative;

		.tool-bar {
			background: #3d3d3d;
			height: 40px;
			width: 100%;
			box-sizing: border-box;
			position: relative;
			border-bottom: 1px solid #1a1a1a;

			.logo {
				overflow: hidden;
				position: absolute;
				left: 10px;
				top: 7px;

				img {
					display: block;
					height: 28px;
					// margin: 7px 0 0 10px;
				}
			}

			.graph-handle {
				display: flex;
				// width: 450px;
				width: 500px;
				justify-content: space-around;
				margin: 0 auto;

				li {
					background-size: 24px 24px;
					cursor: pointer;
					background-position: center center;
					width: 40px;
					height: 40px;
					background-repeat: no-repeat;

					&:hover {
						background-color: #000;
					}
				}

				.graph-handle-btn1 {
					background-image: url(~@/assets/img/graph-handle-btn1.png);
				}

				.graph-handle-btn2 {
					background-image: url(~@/assets/img/graph-handle-btn2.png);
				}

				.graph-handle-btn3 {
					background-image: url(~@/assets/img/graph-handle-btn3.png);
				}

				.graph-handle-btn4 {
					background-image: url(~@/assets/img/graph-handle-btn4.png);
				}

				.graph-handle-btn5 {
					background-image: url(~@/assets/img/graph-handle-btn5.png);
				}

				.graph-handle-btn6 {
					background-image: url(~@/assets/img/graph-handle-btn6.png);
				}

				.graph-handle-btn7 {
					background-image: url(~@/assets/img/graph-handle-btn7.png);
				}

				.graph-handle-btn8 {
					background-image: url(~@/assets/img/graph-handle-btn8.png);
				}

				.graph-handle-btn9 {
					background-image: url(~@/assets/img/graph-handle-btn9.png);
				}
			}

			.run-btn {
				position: absolute;
				right: 24px;
				top: 5px;
			}
		}

		.graph-mini-map {
			position: absolute;
			right: 0;
			bottom: 0;
			width: 300px;
			height: 240px;
		}

		.x6-graph-scroller-content {
			position: relative;
			width: 100%;
			height: 100%;
		}

		#graph-container {
			width: 100%;
			height: calc(100% - 40px);
			margin-left: 60px;

			.x6-graph-background {
				background: url(~@/assets/img/mosaic.png) repeat;
			}
		}
	}

	#container {
		// width: 320px;
		width: 20%;
		height: 100%;
		background: #282828;
		box-sizing: border-box;

		// border-left: 1px solid #1D1D1D;
		.container-title {
			color: #e5e5e5;
			line-height: 40px;
			padding-left: 42px;
			font-weight: normal;
			background: url(~@/assets/img/container-title-icon.png) no-repeat 14px center #3d3d3d;
			background-size: 18px 18px;
			font-size: 14px;
		}

		.container-hint {
			padding-top: 20px;
			color: #fff;
			text-align: center;
		}
	}

	.x6-widget-stencil {
		background: #333333;
	}

	.x6-widget-stencil-title {
		// background-color: #fff;
		display: none;
	}

	.x6-widget-stencil-group-title {
		display: none;
		// background-color: #fff !important;
	}

	// .x6-widget-stencil-group{
	//   margin-top: 40px;
	// }
	.x6-widget-transform {
		margin: -1px 0 0 -1px;
		padding: 0px;
		border: 1px solid #239edd;
	}

	.x6-widget-transform > div {
		border: 1px solid #239edd;
	}

	.x6-widget-transform > div:hover {
		background-color: #3dafe4;
	}

	.x6-widget-transform-active-handle {
		background-color: #3dafe4;
	}

	.x6-widget-transform-resize {
		border-radius: 0;
	}

	.x6-widget-selection-inner {
		border: 1px solid #239edd;
	}

	.x6-widget-selection-box {
		opacity: 0;
	}

	.self-defined {
		display: block;
		width: 112px;
		height: 70px;
		background: linear-gradient(180deg, #585858 0%, #45474a 100%);
		box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.302);
		border-radius: 4px;
		border: 1px solid #616161;

		.self-defined-icon {
			width: 32px;
			height: 32px;
			display: block;
			margin: 7px auto 0;
		}

		.self-defined-word {
			text-align: center;
			color: #aaaaaa;
		}
	}

	.x6-node.x6-node-selected {
		.self-defined {
			background: linear-gradient(180deg, #759467 0%, #548640 100%);
		}

		.self-defined-word {
			color: #fff;
		}
	}

	.widget {
		overflow: hidden;
		padding: 0 14px;
		width: 100%;
		min-height: 800px;
		display: flex;
		flex-direction: column;

		.widget-item {
			padding: 10px 0 0 0;

			// &:after {
			// 	display: block;
			// 	clear: both;
			// 	content: "\0020";
			// 	visibility: hidden;
			// 	height: 0;
			// }
		}

		.widget-title-big {
			color: #fff;
			font-weight: bold;
			font-size: 16px;
		}

		.black-dialog {
			background: rgba(255, 255, 255, 0.2);

			.el-dialog {
				background: #282828;

				.el-input-group__append,
				.el-input-group__prepend,
				input,
				.el-button--default {
					background: #1d1d1d;
					border-color: #1d1d1d;
					color: #fff;
				}
			}
		}

		.widget-white-word {
			color: #fff;
		}

		.widget-title {
			color: #fff;
			float: left;
			// width: 120px;
			width: 100%;
		}

		.widget-select {
			float: left;
			background: #1d1d1d;

			.el-input__inner,
			.el-select-dropdown,
			.el-select-dropdown__item {
				background: #1d1d1d;
				border-color: #1d1d1d;
				color: #fff;
			}

			.el-select-dropdown__item.hover,
			.el-select-dropdown__item.selected {
				font-weight: bold;
				background: #000;
			}

			.el-popper[x-placement^="bottom"] .popper__arrow {
				border-bottom-color: #1d1d1d;

				&::after {
					border-bottom-color: #1d1d1d;
				}
			}
		}

		.checkbox-word {
			margin-left: 10px;
			color: #fff;
		}

		.val {
			float: left;
			width: 160px;

			.el-input__inner {
				background: #1d1d1d;
				color: #fff;
				border-color: rgba(0, 0, 0, 0);
			}
		}
	}
}
